package nml.mail.reg.await;

import nml.mail.reg.Reg;

import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;

public class chinalawedu_com extends Reg {
	// web mail 登陆要验证码
	public void reg(String username, String password) {
		

		String url = "http://member.chinalawedu.com/member/register.shtm";
		get(url);

		dr.findElement(By.name("username")).sendKeys(username);
		dr.findElement(By.name("passwd")).sendKeys(password);
		dr.findElement(By.name("rePasswd")).sendKeys(password);
		dr.findElement(By.name("realname")).sendKeys("王信");
		dr.findElement(By.name("randcode")).click();

		System.out.println(username + "@chinalawedu.com\t" + password);

	}

	public static void main(String[] args) {
		new chinalawedu_com().reg("qq331798654", "qq3131798654");
	}

}
